package com.huiruan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huiruan.dto.UserDTO;
import com.huiruan.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;

/**
 * PC用户Mapper接口
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 根据用户名查询用户
     */
    SysUser selectByUsername(String username);

    IPage getUsersPage(Page page, UserDTO userDTO);
}
